package cn.com.thinker.core.aop.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by crazyHC on 2017/6/9.
 */
@Component
public class HelloWorldService {

    @Value("${myName:World}")
    private String name;

    public String getHelloMessage() {
        String result = "Hello " + this.name;
        System.out.println(result);
        return result;
    }

}
